What is the meaning of the word "by trial and error"?

Definitions: